export const dataSourceLine = {
  title: "基础折线图",
  xAxisData: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
  yAxisData: [
    { name: "数值1", data: [1, 3, 5, 2, 4, 6, 7], smooth: true },
    { name: "数值2", data: [7, 6, 4, 2, 5, 3, 1], smooth: false },
    { name: "数值3", data: [2, 4, 6, 8, 1, 5, 10], smooth: false },
  ]
};

export const dataSourceBar = { 
  title: "柱状图控制项",
  xAxisData: ['2012', '2013', '2014', '2015', '2016'],
  yAxisData: [
    { name: "数值1", data: [320, 332, 301, 334, 390] },
    { name: "数值2", data: [220, 182, 191, 234, 290] },
    { name: "数值3", data: [150, 232, 201, 154, 190] },
    { name: "数值4", data: [98, 77, 101, 99, 40] },
  ]
};

export const dataSourcePie = { 
  title: "基础饼图",
  seriesName: "seriesName",
  subTitle: "subTitle",
  pieData: [
    { name: "数值1", value: 1000 },
    { name: "数值2", value: 800 },
    { name: "数值3", value: 600 },
    { name: "数值4", value: 400 },
    { name: "数值5", value: 200 },
  ]
};


import heilongjiang from '/@/jqkit/jqkECharts/echartGeoJSON/heilongjiang.json';
export const dataSourceGeo = { 
  title: "地理坐标系组件",
  geoJSON: heilongjiang,
  geoData: {
    regions: [
      {
        name: "哈尔滨市",
        // selected: true,
        itemStyle: {
          areaColor: "#1968d3",
        },
      },
      {
        name: "齐齐哈尔市",
        itemStyle: {
          areaColor: "#1968d3",
        },
      },
      {
        name: "牡丹江市",
        itemStyle: {
          areaColor: "#1968d3",
        },
      },
      {
        name: "佳木斯市",
        itemStyle: {
          areaColor: "#1968d3",
        },
      },
    ]
  },
  seriesData: {
    // 带有涟漪特效动画的散点（气泡）图
    effectScatterInside: [
      {
        id: 1,
        name: "哈尔滨市",
        value: [128.0155155150425, 45.34940408695576],
      },
      {
        id: 2,
        name: "齐齐哈尔市",
        value: [123.87465804699819, 47.32806866656142],
      },
      {
        id: 3,
        name: "牡丹江市",
        value: [129.86226912267443, 44.368674686629475],
      },
      {
        id: 4,
        name: "佳木斯市",
        value: [130.30961937545484, 46.82910107692173],
      },
    ],
    effectScatterOutside: [
      // 哈尔滨
      {
        id: 1,
        name: "哈尔滨发电有限公司",
        value: [125.1020036123188, 43.28471061258464],
      },
      {
        id: 2,
        name: "哈尔滨热点有限责任公司",
        value: [123.25525000468686, 44.21382267605165],
      },
      {
        id: 3,
        name: "哈尔滨第三发电厂",
        value: [124.14995051024768, 45.366609865908856],
      },
      // 齐齐哈尔
      {
        id: 4,
        name: "富拉尔基热电厂",
        value: [121.33967328124254, 46.76888085058591],
      },
      {
        id: 5,
        name: "黑龙江华电齐齐哈尔热点有限公司",
        value: [120.05497511941161, 48.21416628264569],
      },
      {
        id: 6,
        name: "富拉尔基发电厂",
        value: [121.7067298989085, 49.09166100925342],
      },
      // 牡丹江
      {
        id: 7,
        name: "牡丹江第二发电厂",
        value: [132.74136946749195, 44.54073247616041],
      },
      // 佳木斯
      {
        id: 8,
        name: "桦川协联生物质能热点有限公司",
        value: [133.63606997305277, 48.816368546003936],
        color: "blue",
      },
      {
        id: 9,
        name: "佳木斯热电厂",
        value: [132.22519609889918, 50.28746264649336],
      },
    ],
    lines: [
      { from: 1, to: 1 },
      { from: 1, to: 2 },
      { from: 1, to: 3 },
      { from: 2, to: 4 },
      { from: 2, to: 5 },
      { from: 2, to: 6 },
      { from: 3, to: 7 },
      { from: 4, to: 8 },
      { from: 4, to: 9 },
    ],
    effectScatterPin: [
      {
        id: 1,
        name: "华电能源股份有限公司",
        value: [126.66361, 45.77185],
        itemStyle: { color: "red" },
      },
    ]
  },
};